package com.sen.java.demo.general.getset;

/**
 * @author sen
 * @ 
 * To generate getters and setters select
 * the field variables Right click -> source ->
 * then select getters and setters option.The 
 * wizard will guide you to generate the the getters 
 * and setter functions.
 *
 */
public class GetSet {

	private String name;
	private int age;
	GetSet(int age,String name) {
		setAge(age);
		setName(name);
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @return the age
	 */
	public int getAge() {
		return age;
	}
	/**
	 * @param name the name to set
	 */
	protected void setName(String name) {
		this.name = name;
	}
	/**
	 * @param age the age to set
	 */
	protected void setAge(int age) {
		this.age = age;
	}
}
